package com.zyx.logbackdemo;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author zyx
 * @since 2021/5/11 21:55
 * desc: logback测试类
 */
public class LogbackTest {
    public static final Logger log = LoggerFactory.getLogger(LogbackTest.class);
    /**
     * 快速入门
     */
    @Test
    public void testQuick() {
        // 日志输出
        for (int i = 0; i < 10000; i++) {
            log.error("error");
            log.warn("warn");
            log.info("info");
            log.debug("debug");
            log.trace("trace");
        }
    }
}
